import request from '@/utils/request'

// const baseUrl = 'http://10.10.2.46:5551/bim/';
const baseUrl = '/bim/'

// 资产下的楼层信息
export function getBuildingFloors(layerId, name) {
  return request({
    method: 'get',
    url:
      baseUrl +
      `blding/info?layerId=${layerId}&name=${name}`
  })
}

// 获取楼层的资产信息
export function getFloorInfo(layerId, name, floorNo) {
  return request({
    method: 'get',
    url:
      baseUrl +
      `entinfo/info?layerId=${layerId}&name=${name}&floorNo=${floorNo}`
  })
}

// 获取监测设备信息
export function getDeviceInfo(layerId, name) {
  return request({
    method: 'get',
    url:
      baseUrl +
      `blding/media/info?layerId=${layerId}&name=${name}`
  })
}

// 获取功能分区信息
export function getDomainInfo(layerId, name) {
  return request({
    method: 'get',
    url:
      baseUrl +
      `flooinfo/funtion/info?layerId=${layerId}&name=${name}`
  })
}
